﻿Imports System
Imports System.Data
Imports System.Configuration
Imports System.Linq
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Xml.Linq

 _


Public Class elementoCartera

   Private idUser As String
   Private idAccion As String
   Private cantidad As Integer
   Private valorTotal As Double
   
   
   
   Public Sub New()
      Me.idUser = ""
      Me.idAccion = ""
   End Sub 'New
   
   
   Public Sub New(attrs() As String)
      Me.idUser = attrs(0)
      Me.idAccion = attrs(1)
      Me.cantidad = Integer.Parse(attrs(2))
      Me.valorTotal = [Double].Parse(attrs(3))
   End Sub 'New
   
   
   
   Public Function getIdUser() As String
      Return Me.idUser
   End Function 'getIdUser
   
   
   Public Function getIdAccion() As String
      Return Me.idAccion
   End Function 'getIdAccion
   
   
   Public Function getNumTotal() As Integer
      Return Me.cantidad
   End Function 'getNumTotal
   
   
   Public Function getValorTotal() As Double
      Return Me.valorTotal
   End Function 'getValorTotal
End Class 'elementoCartera 
